﻿<Window x:Class="System.Reactive.Contrib.Monitoring.UI.InputDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen"
        x:Name="dialog"
        Title="InputDialog" Height="153" Width="342">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" Margin="8" 
            Text="{Binding ElementName=dialog,Path=Message}" VerticalAlignment="Center" HorizontalAlignment="Left" TextWrapping="Wrap"/>
        <TextBox Grid.Row="1" Margin="8" x:Name="InputTextBox"
            Text="{Binding ElementName=dialog,Path=InputText,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="False"
                 VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
        <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="8"
                    Grid.Row="2">
            <Button Content="Yes" Click="Button_Click" Width="75" VerticalAlignment="Center" Margin="4"/>
            <Button Content="No" IsCancel="True" Width="75" VerticalAlignment="Center" Margin="4"/>
        </StackPanel>
    </Grid>
</Window>
